package com.ruoyi.permission.mapper;

import com.ruoyi.permission.Dao.SerBlockPermi;
import com.ruoyi.permission.domain.BlockPermiDeviceInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SerBlockPermiMapper {
    //根据地块id删除地块
    int deleteByPrimaryKey(Integer id);
    //新增地块
    int insert(SerBlockPermi record);
    //新增地块，按条件
    int insertSelective(SerBlockPermi record);
    //根据地块id筛选地块
    SerBlockPermi selectByPrimaryKey(Integer id);
    //根据地块名筛选地块
    SerBlockPermi selectByBlockName(String blockName);
    //查询所有地块
    List<SerBlockPermi> selectAllBlockPermi();
    //更新地块信息，按条件
    int updateByPrimaryKeySelective(SerBlockPermi record);
    //更新地块信息
    int updateByPrimaryKey(SerBlockPermi record);
    //根据blockId获取设备列表
    List<BlockPermiDeviceInfo> selectDeviceListByBlockId(int id);
}